package com.dc.refactoring._2_在对象之间搬移特性._3_ExtractClass.newObject;

import lombok.Data;

/**
 * Description: 提炼类_电话号码类
 * @author: gdc
 * @date: 2020/11/15
 * @version 1.0
 */
// 【2】定义 新类，来承接 将电话号码相关的行为
@Data
public class TelephoneNumber {
    private String officeNumber;
    private String officeAreaCode;

    public String getTelephoneNumber() {
        return "(" + officeAreaCode + ")" + officeNumber;
    }

}
